package com.evil.application.pojo.dto.reporting.data;

import lombok.Data;
import lombok.experimental.Accessors;

import java.util.ArrayList;
import java.util.List;

/**
 * 报表数据 树状表
 *
 * @date 2022-08-08 00:00
 */
@Data
@Accessors(chain = true)
public class ReportingTreeDataDTO {

    /**
     * 维度标题
     */
    private String title;

    /**
     * 值
     */
    private String value;

    /**
     * 子级
     */
    private List<ReportingTreeDataDTO> children;

    public ReportingTreeDataDTO() {
        this.children = new ArrayList<>();
    }

    public ReportingTreeDataDTO(String title, String value) {
        this.title = title;
        this.value = value;
        this.children = new ArrayList<>();
    }
}
